# -*- coding: utf-8 -*-
# @Time    : 2020/1/11 16:35
# @Author  : Damn7Kx
import time, datetime
import os

if __name__ == "__main__":
    count = 0
    while True:
        count += 1
        print(datetime.datetime.now(), 'Time_task7第%s次运行爬虫' % count)
        os.system("scrapy crawl Yuetoutiao")
        os.system("scrapy crawl Chudian")
        os.system("scrapy crawl Juyouliao")
        os.system("scrapy crawl Sina")
        os.system("scrapy crawl Yangshi")
        print("Time Task7进入等待时间...")
        time.sleep(180)